@charset "utf-8";
@import url("../../../css/section-home.css");

:root {
  --board-column: 160px;
  --board-gap: 10px;
  --board-columns: 12;
  --hq-icon-size: 200px;
  --hq-row-height: 210px;
  --sec2-row-height: 195px;
  --sec3-row-height: 150px;
  --connector-color: rgba(255, 255, 255, 0.92);
  --connector-width: 4px;
  --left-tick-length: 10px;
  --left-tick-length-lower: 20px;
  --left-stack-offset: -7px;
  --connector-drop: 10px;
  --connector-subordinate-drop: 40px;
  --connector-branch-offset: 0px;
  --top-row-icon-offset: 40px;
  --sec2-tick-center: 115px;
  --sec3-tick-center: 62.5px;
  --sec3-step: calc(var(--sec3-row-height) + var(--board-gap));
}

.page-shell {
  width: min(calc(100% - 32px), 1980px);
  margin: 24px auto 40px;
}

.hero-compact {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(177, 179, 179, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(7, 20, 31, 0.92), rgba(15, 34, 48, 0.78));
  box-shadow: var(--shadow);
}

.hero-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.95) 0%, rgba(7, 20, 31, 0.7) 46%, rgba(7, 20, 31, 0.24) 100%),
    radial-gradient(circle at top right, rgba(255, 212, 120, 0.18), transparent 30%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 36px 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-compact h1 {
  margin: 0;
  color: #f4f7f8;
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-compact p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.top-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.top-nav a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255, 212, 120, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff4cf;
  text-decoration: none;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 212, 120, 0.1);
  border-color: rgba(255, 212, 120, 0.45);
}

.board-shell {
  margin-top: 24px;
  border: 1px solid rgba(177, 179, 179, 0.22);
  border-radius: var(--radius-md);
  background: rgba(10, 35, 54, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(177, 179, 179, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.board-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.board-scroll {
  overflow-x: auto;
  padding: 20px;
}

.unit-board {
  min-width: calc(var(--board-columns) * var(--board-column) + (var(--board-columns) - 1) * var(--board-gap));
  display: grid;
  grid-template-columns: repeat(12, var(--board-column));
  column-gap: var(--board-gap);
  justify-content: center;
  align-content: start;
  row-gap: var(--board-gap);
  position: relative;
}

.unit-board > section {
  position: relative;
}

.unit-board.has-top-hierarchy > section:first-child {
  z-index: 3;
}

.unit-board.has-top-hierarchy > section:nth-child(2) {
  z-index: 4;
}

.unit-board.has-top-hierarchy > section img {
  position: relative;
  z-index: 1;
}

.unit-board.has-top-hierarchy > section:first-child::after,
.unit-board.has-top-hierarchy > section:nth-child(n + 2):nth-child(-n + 13)::before {
  content: "";
  position: absolute;
  background: var(--connector-color);
  pointer-events: none;
  z-index: 2;
}

.unit-board.has-top-hierarchy::before {
  content: "";
  position: absolute;
  top: calc(var(--hq-row-height) + var(--board-gap) - var(--connector-branch-offset));
  left: calc(var(--board-column) / 2);
  width: calc((var(--board-columns) - 1) * (var(--board-column) + var(--board-gap)));
  height: var(--connector-width);
  background: var(--connector-color);
  pointer-events: none;
  z-index: 2;
}

.unit-board.has-top-hierarchy > section:first-child::after {
  top: var(--hq-icon-size);
  left: 50%;
  width: var(--connector-width);
  height: calc((var(--hq-row-height) - var(--hq-icon-size)) + var(--board-gap) - var(--connector-branch-offset));
  transform: translateX(-50%);
}

.unit-board.has-top-hierarchy > section:nth-child(n + 2):nth-child(-n + 13)::before {
  top: calc(var(--connector-branch-offset) * -1);
  left: 50%;
  width: var(--connector-width);
  height: var(--connector-subordinate-drop);
  transform: translateX(-50%);
}

.unit-board.has-top-hierarchy > section:nth-child(n + 2):nth-child(-n + 13) img {
  margin: var(--top-row-icon-offset) auto 0;
}

.unit-board.has-left-ticks > section:has(img):is(
  :nth-child(12n + 2),
  :nth-child(12n + 3),
  :nth-child(12n + 4),
  :nth-child(12n + 5),
  :nth-child(12n + 6),
  :nth-child(12n + 7)
)::after {
  content: "";
  position: absolute;
  width: var(--left-tick-length);
  height: var(--connector-width);
  background: var(--connector-color);
  pointer-events: none;
  z-index: 2;
}

.unit-board.has-left-ticks > section[id="sec2"]:has(img):is(
  :nth-child(12n + 2),
  :nth-child(12n + 3),
  :nth-child(12n + 4),
  :nth-child(12n + 5),
  :nth-child(12n + 6),
  :nth-child(12n + 7)
)::after {
  top: calc(var(--top-row-icon-offset) + 75px);
  left: -7px;
  transform: translateY(-50%);
}

.unit-board.has-left-ticks > section[id="sec3"]:has(img):is(
  :nth-child(12n + 2),
  :nth-child(12n + 3),
  :nth-child(12n + 4),
  :nth-child(12n + 5),
  :nth-child(12n + 6),
  :nth-child(12n + 7)
)::after {
  top: var(--sec3-tick-center);
  left: var(--left-stack-offset);
  width: var(--left-tick-length-lower);
  transform: translateY(-50%);
}

.stack-line {
  position: absolute;
  top: calc(var(--sec2-tick-center) - 2px);
  left: var(--left-stack-offset);
  width: var(--connector-width);
  height: calc((var(--sec2-row-height) - var(--sec2-tick-center)) + var(--board-gap) + (var(--stack-depth) * var(--sec3-step)) + var(--sec3-tick-center));
  background: var(--connector-color);
  pointer-events: none;
  z-index: 2;
}

#sec1,
#sec2,
#sec3,
#sec4 {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  justify-self: center;
}

#sec1 {
  width: 100%;
  height: var(--hq-row-height);
  grid-column: 1 / -1;
}

#sec2 {
  width: 160px;
  height: var(--sec2-row-height);
}

#sec3 {
  width: 160px;
  height: var(--sec3-row-height);
}

#sec4 {
  width: 174.5px;
  height: 125px;
}

#sec1 img,
#sec2 img,
#sec3 img,
#sec4 img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), 1980px);
    margin-top: 10px;
  }

  .hero-copy,
  .board-header,
  .board-scroll {
    padding-left: 20px;
    padding-right: 20px;
  }
}
